package org.study.tk.boot.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @author Administrator
 */
@Data
@Component
public class SnowflakeIdConfig {
    @Value(value = "${snowflake.workerId}")
    private long workerId;

    @Value(value = "${snowflake.dataCenterId}")
    private long dataCenterId;

    @Value(value = "${snowflake.standbyDataCenterId}")
    private long standbyDataCenterId;
}
